import { Service, Inject } from "typedi";
import { CountryService } from "../CountryService";
import { CountryDao } from "../../dao/CountryDao";


@Service()
export class CountryServiceImpl implements CountryService{



    @Inject()
    private  CountryDao!: CountryDao;

    public async getAllCountry():Promise<any>{

        return await this.CountryDao.getAllCountry();
    }

    public async getAllTime(country_Id:number):Promise<any>{

        return  await this.CountryDao.getAllTime(country_Id);
         
    }

    public async getAllThink(country_Id:number,think_Page:number,think_Count:number,time_Id:number):Promise<any>{

        let thinkData =  await this.CountryDao.getAllThink(country_Id,think_Page,think_Count,time_Id);
        return {thinkData}
    }

}